package com.eigland.eigaland_lib.network

import com.eigland.eigaland_lib.model.BaseResp
import com.eigland.eigaland_lib.model.PageResponse
import com.eigland.eigaland_lib.model.TransactionWithPaymentType
import io.reactivex.Observable
import kotlinx.coroutines.Deferred
import retrofit2.http.GET
import retrofit2.http.Query

public interface TransactionService{

    @GET("/api/v1/pos/transaction/listByDevice")
    fun getTransactionList(@Query("page") page: Int = 0, @Query("size") size: Int = 20, @Query("sort") sort: String = "transaction.createAt,desc"): Deferred<BaseResp<PageResponse<TransactionWithPaymentType>>>

}